//
//  Model.m
//  19-JSON
//
//  Created by dllo on 16/8/9.
//  Copyright © 2016年 ZHW. All rights reserved.
//

#import "Model.h"

@implementation Model
- (instancetype)initWithDicitionary:(NSDictionary *)dictionary {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}

+ (instancetype)modelWithDictionary:(NSDictionary *)dictionary {
    return [[Model alloc] initWithDicitionary:dictionary];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

- (id)valueForUndefinedKey:(NSString *)key {
    return nil;
}
@end
